/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rw.table;

import com.rw.table.formatter.ICellFormatter;
import java.awt.Color;
import javax.swing.JTable;

/**
 *
 * @author Rene Tapia
 */
public class TableInfo {

    private JTable table;
    private Object value;
    private boolean selected;
    private boolean hasFocus;
    private int row;
    private int col;
    private ICellFormatter formatter;
    private Color bg;

    public TableInfo(JTable table, Object value, boolean selected, boolean hasFocus, int row, int col, ICellFormatter formatter, Color bg) {
        this.table = table;
        this.value = value;
        this.selected = selected;
        this.hasFocus = hasFocus;
        this.row = row;
        this.col = col;
        this.formatter = formatter;
        this.bg = bg;
    }

    public int getCol() {
        return col;
    }

    public ICellFormatter getFormatter() {
        return formatter;
    }

    public boolean isHasFocus() {
        return hasFocus;
    }

    public int getRow() {
        return row;
    }

    public boolean isSelected() {
        return selected;
    }

    public JTable getTable() {
        return table;
    }

    public Object getValue() {
        return value;
    }

    public Color getBackgroundColor() {
        return bg;
    }
}
